Skip to content

[WIP] Add WebRTC features to Linux#277

Draft
Shotman wants to merge 1 commit into
SpikeHD:mainfrom
Shotman:webrtc_playground
Draft

[WIP] Add WebRTC features to Linux#277
Shotman wants to merge 1 commit into
SpikeHD:mainfrom
Shotman:webrtc_playground

Conversation

@Shotman

@Shotman Shotman commented Dec 9, 2024

Copy link
Copy Markdown

This PR is a starting point to enable media/WebRTC features to Linux currently it allows to get to this point :
image

But the issue lies with the navigator.getUserMedia() this API is deprecated and not available in webkitGTK and now navigator.mediaDevices.getUserMedia() must be used, and using some polyfill or dirty JS injection doesn't solve the problem.
I'm putting this as a draft PR if one day either Discord or webkit changes something so it can be merged.
In the mean time if someone has an idea you are welcome to modify the code.

@SpikeHD

SpikeHD commented Dec 11, 2024

Copy link
Copy Markdown
Owner

FYI for anyone coming across this, if I remember correctly from testing, the core problem lies in the fact that RTCPeerConnection is undefined on instances of webkitgtk without the WebRTC flag.

@xNeo92x

xNeo92x commented May 21, 2026

Copy link
Copy Markdown

I'm an absolute amateur, and I'm sorry if what I write is complete bullsh*, but could something like this be an alternative for this project?
https://github.com/amitnos123/tauri-plugin-rtc

@SpikeHD

SpikeHD commented May 21, 2026

Copy link
Copy Markdown
Owner

I've been suggested that plugin before I believe, and it just seems like one of those unfinished vibe-coded projects. The rust code doesn't really do anything, and the library it's "based on" (loose usage of the phrase because the rust code doesn't contain even one reference to the webrtc library) doesn't contain, and seems to not want to contain, the full webrtc client stack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants